var MemoList = Class.create(AbstractList,{
  initialize:function($super,args)
  {
    this.sum=0;
    args.url='/memoList.json',
    $super(args);
  },
  createDataSet:function(dataSet)
  {
      var tableData = {option:'style="width:48em;" class="account_list"',
          header:[{name:'日付',sort:'number',width:'6em'},{name:'内容',sort:'normal',width:'34em'}],data:[]};

      for(var i=0;i<dataSet.length;i++)
      {
        var rec = new Array();
        var data = dataSet[i];
        var dateStr = '<a href="/?year='+data.year+'&month='+data.month+'&day='+data.date+'">';
        dateStr += data.year+'-'+data.month+'-'+data.date+'</a>';
        rec.push(dateStr);
        rec.push(data.memo);
        tableData.data.push(rec);
      }
      this.callBack(tableData);
  }
});
